from BeautifulSoup import BeautifulStoneSoup
import urllib2

def get_main_links():
	site= "http://www.ztm.waw.pl"
	print "otwieranie ", site
	site= urllib2.urlopen(site)
	soup= BeautfulStoneSoup(site)
	linki= soup.findAll('a')
	for link in linki:
		string= str(link)
		if('title' in string) and (not 'exe' in string):
			if 'szukaj wg linii' in  string:
				linia_link= link['href']
			elif 'szukaj z przystanku' in string:
				przyst_link= link['href']
	return (linia_link, przyst_link)

